home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / command-not-found.postinst < prev    next >
Text File  |  2009-10-13  |  1KB  |  51 lines

  1. #!/bin/sh
  2. # postinst script for command-not-found
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <postinst> `abort-remove'
  14. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  15. #          <failed-install-package> <version> `removing'
  16. #          <conflicting-package> <version>
  17. # for details, see http://www.debian.org/doc/debian-policy/ or
  18. # the debian-policy package
  19.  
  20.  
  21. case "$1" in
  22.     configure)
  23.     ;;
  24.  
  25.     abort-upgrade|abort-remove|abort-deconfigure)
  26.     ;;
  27.  
  28.     *)
  29.         echo "postinst called with unknown argument \`$1'" >&2
  30.         exit 1
  31.     ;;
  32. esac
  33.  
  34. # remove old left-over file
  35. if dpkg --compare-versions "$2" lt-nl "0.2.35ubuntu3"; then
  36.     rm -f /etc/bash_command_not_found
  37. fi
  38.  
  39. # Automatically added by dh_pycentral
  40. rm -f /var/lib/pycentral/command-not-found.pkgremove
  41. if which pycentral >/dev/null 2>&1; then
  42.     pycentral pkginstall command-not-found
  43.     if grep -qs '^command-not-found$' /var/lib/pycentral/delayed-pkgs; then
  44.         sed -i '/^command-not-found$/d' /var/lib/pycentral/delayed-pkgs
  45.     fi
  46. fi
  47. # End automatically added section
  48.  
  49.  
  50. exit 0
  51.